package com.hk.yajin.model;

import com.chad.library.adapter.base.entity.MultiItemEntity;

/**
 * Created by 伦哥哥 on 2017/7/23.
 */

public class IndexModel implements MultiItemEntity {
    private int type;
    private Object data;

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public IndexModel(int typeNum,Object dataitem){
        data=dataitem;
        type=typeNum;
    }


    @Override
    public int getItemType() {
        return type;
    }
}
